{template header}

    {template title}

    <div class="box">
        <table cellpadding="1" cellspacing="1" width="100%" border="0">
            <tr>
                <th>
                    {$msg}
                    <b class="time" style="color: red; padding-right: 5px;">{$delay}</b>秒后自动返回!
                    [<a href="{$url}" style="color: #333;">立即返回</a>]
                </th>
            </tr>
        </table>
        <script type="text/javascript">
            var n = $( ".time" ).html();
            var i = 0;
            var t = window.setInterval( "back()", 1000 );
            function back() {
                i++;
                $( ".time" ).html( n - i );
                if ( n - i == 0 ) {
                    clearInterval( t );
                    window.setTimeout( function () { window.location.href = '{$url}'; }, 1000 );
                    return;
                }
            }
        </script>
    </div>

{template footer}